package com.innovation.wjrpc.server;

import com.innovation.wjrpc.codec.Decoder;
import com.innovation.wjrpc.codec.Encoder;
import com.innovation.wjrpc.codec.impl.JSONDecoder;
import com.innovation.wjrpc.codec.impl.JSONEncoder;
import com.innovation.wjrpc.transport.TransportServer;
import com.innovation.wjrpc.communication.HTTPTransportServer;
import lombok.Data;

/**
 * @author innoyiya
 * @date 2021/9/7 19:57
 */
@Data
public class RpcServerConfig {
    private Class<? extends TransportServer> transportClass = HTTPTransportServer.class;
    private Class<? extends Encoder> encoderClass = JSONEncoder.class;
    private Class<? extends Decoder> decoderClass = JSONDecoder.class;
    private int port = 3000;
}
